<?php
/*
Description: This file is used to change login paassword.
*/
#########IncludeFiles####################################################################################
require_once '../inc/config.php';
require_once "../inc/bootstrape.php";
require_once _SITE_PATH_.'classes/Vendor/Vendor.php';
require_once _SITE_PATH_.'classes/Honeymoon/Honeymoon.php';
require_once _SITE_PATH_.'classes/CommonUtility/CommonUtility.php';

$action = trim($_REQUEST['action']);
$id = trim($_REQUEST['id']);
switch($action){
    case 'active':
        $parms['status'] = '1';
        $condition['id'] = $id;
        $row = CommonUtility::updateData($parms,$table='honeymoon_type_master',$condition);
        $errMsg = "1001" ;
    break;
    case 'deactive':
        $parms['status'] = '0';
        $condition['id'] = $id;
        $row = CommonUtility::updateData($parms,$table='honeymoon_type_master',$condition);
        $errMsg = "1002" ;
    break;
    case 'delete':
        $parms['status'] = '3';
        $condition['id'] = $id;
        $row = CommonUtility::updateData($parms,$table='honeymoon_type_master',$condition);
        $errMsg = "1003" ;
    break;
}
if( $errMsg ){
    header("Location: honeymoon_type_mng.php?msg=".$errMsg);
    exit;
}

$records = CommonUtility::getData($parms,$table='honeymoon_type_master');
//print_r($records);
//    END CHANGE PASSWORD CODE    //
$errMsg = $_GET['msg'];
$_tplName = 'honeymoon-package/honeymoon_type_mng.tpl';
$_title = 'Manage Package Type';
require_once _ADMIN_TPL_MAIN_;
?>